import { defHttp } from '/@/utils/http/axios';
import { ContentTypeEnum } from '/@/enums/httpEnum';

enum salary {
  getSalaryList = '/admin-api/system/salary-settlement/page',
  getSalaryAdd = '/admin-api/system/salary-settlement/create',
  getSalaryDelete = '/admin-api/system/salary-settlement/delete',
  getDeptSimple = '/admin-api/system/dept/list',
  getUserSimple = '/admin-api/system/user/list-all-simple',

}

/**
 * @description: 获字典
 */
export const salaryList = (params: any) => {
  return defHttp.get<any>({ url: salary.getSalaryList, params });
};
export const salaryAdd = (params: any) => {
  return defHttp.post<any>({ url: salary.getSalaryAdd, params });
};
export const salaryDelete = (params: any) => {
  return defHttp.delete<any>({ url: salary.getSalaryDelete, params, headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED } });
};
export const deptSimple = (params: any) => {
  return defHttp.get<any>({ url: salary.getDeptSimple, params });
};
export const userSimple = (params: any) => {
  return defHttp.get<any>({ url: salary.getUserSimple, params });
};
